package com.jhgsys.internal.accident.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zjb
 * @date 2024-09-13 10:18:53
 */
@Data
@TableName("accident_report_rectification")
public class AccidentReportRectification extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_rectification_id", type = IdType.ASSIGN_UUID)
    private String reportRectificationId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    private String tenantId;

    /**
     * 事故报告Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    private String reportId;

    /**
     * 整改措施
     */
    @TableField("rectification_opinion")
    @NotBlank(message = "{required}")
    private String rectificationOpinion;

    /**
     * 整改截至时间
     */
    @TableField("rectification_deadline")
    @NotNull(message = "{required}")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rectificationDeadline;

    /**
     * 整改责任人Id
     */
    @TableField("obligation_user_id")
    private String obligationUserId;

    /**
     * 整改责任人工号
     */
    @TableField("obligation_user_no")
    private String obligationUserNo;

    /**
     * 整改责任人姓名
     */
    @TableField("obligation_real_name")
    private String obligationRealName;

    /**
     * 整改责任人部门Id
     */
    @TableField("obligation_dept_id")
    private String obligationDeptId;

    /**
     * 整改责任人部门
     */
    @TableField("obligation_dept_name")
    private String obligationDeptName;

    /**
     * 整改责任人岗位Id
     */
    @TableField("obligationt_post_id")
    private String obligationtPostId;

    /**
     * 整改责任人岗位
     */
    @TableField("obligationt_post_name")
    private String obligationtPostName;

    /**
     * 整改状态;1:待整改 2：已退回待整改 3：已整改待审核  4：已完成
     */
    @TableField("rectification_status")
    private String rectificationStatus;

    /**
     * 整改实施人;名字(工号),名字(工号)
     */
    @TableField("rectification_implementer")
    private String rectificationImplementer;

    /**
     * 整改反馈
     */
    @TableField("rectification_measures")
    private String rectificationMeasures;

    /**
     * 整改时间
     */
    @TableField("rectification_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rectificationDate;

    /**
     * 整改审核人Id
     */
    @TableField("rectification_audit_user_id")
    private String rectificationAuditUserId;

    /**
     * 整改审核人姓名
     */
    @TableField("rectification_audit_real_name")
    private String rectificationAuditRealName;

    /**
     * 整改审核时间
     */
    @TableField("rectification_audit_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rectificationAuditDate;

    /**
     * 整改审核备注
     */
    @TableField("rectification_audit_remark")
    private String rectificationAuditRemark;

    /**
     * 转发警示教训;0：否 1：是
     */
    @TableField("cautionary_flg")
    private String cautionaryFlg;

}